unit Unit3;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm3 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
  public
    procedure CreateParams(var Params: TCreateParams);override;  
  end;

var
  Form3: TForm3;

function FuncViewForm3:Integer;  

implementation

{$R *.dfm}
function FuncViewForm3:Integer;
begin
  try
    Form3:=TForm3.Create(nil);
    Result:=Form3.ShowModal;
  finally
    FreeAndNil(Form3);
  end;
end;  

{ TForm3 }

procedure TForm3.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams(Params);
  //Params.WndParent := GetDesktopWindow;
  //OR
  //Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
end;

procedure TForm3.FormCreate(Sender: TObject);
begin
  //SetWindowLong(self.Handle, GWL_EXSTYLE, WS_EX_APPWINDOW);
end;

end.
 